import jwt

#  编码
jwt_s = jwt.encode({"name": "Tom", "age": 30}, "123abc")
print(jwt_s.decode())

# 解码
r = jwt.decode(jwt_s, "123abc", verify=True)

print(r)
print(r["name"])
